Skip to content

Rescue: retry pairing, and take a pasted key - #108

Merged
freethinkel merged 2 commits into
mainfrom
rescue-keep-key
Nov 20, 2026
Merged

freethinkel merged 2 commits into
mainfrom
rescue-keep-key

Conversation

@freethinkel

Copy link
Copy Markdown
Collaborator

Already deployed to fmc.tools from this branch; merging so main matches prod.

  • Pairing on rescue. With no saved key, rescue now pairs instead of refusing. The wait for the on-watch confirmation ends after 30 s, or as soon as the watch drops the link, and the retry loop asks again. Before this, a watch that disconnected during pairing left the page waiting forever.
  • Pasted key. The site moved from fmc.freethinkel.dev to fmc.tools, and the key is stored per address. fmc.freethinkel.dev/rescue (Caddy, in fmc_pocketbase) now prints the old address's key. /rescue on fmc.tools has a field that takes that text or the bare 32 hex digits, and also merges in the faces installed there.

Tests: tests/ble-pair-timeout.browser.test.ts and a case added to tests/rescue-retry.browser.test.ts. Not verified on a real watch.

🤖 Generated with Claude Code

https://claude.ai/code/session_01CQSU8Nr9jJ3ALiRfiDuC6m

freethinkel and others added 2 commits November 20, 2026 18:48
A watch with no saved key in this browser used to be refused outright. Pairing is
the only way in for it, so rescue now pairs, and the wait for the confirmation
ends on a 30 s timeout or the moment the watch drops the link, so the retry loop
comes back and asks again instead of stopping on the first try.

A saved key is still never dropped on rescue; an outright refusal of it leads to
a pairing, and the key stays until a new one replaces it.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CQSU8Nr9jJ3ALiRfiDuC6m
The site moved from fmc.freethinkel.dev to fmc.tools, and a browser keeps the
watch's pairing key per address, so a key saved on the old one is invisible
here. The old address's /rescue now prints it; this page takes that text (or
the bare 32 hex digits), saves the key, and merges in the faces that were
installed there so "delete faces" has something to delete.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CQSU8Nr9jJ3ALiRfiDuC6m
@freethinkel
freethinkel merged commit eb04b2b into main Nov 20, 2026
1 check passed
@freethinkel
freethinkel deleted the rescue-keep-key branch November 20, 2026 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant